}

function testForCovidPositivePublicPrivate() private {

emit NewPositiveFound(msg.sender,

++numberOfPositivePatients); // Triggering event

}

}

Once you compile, you would find the following as the output:

[

{

“anonymous”: false,

“inputs”: [

{

“indexed”: false,

“internalType”: “address”,

“name”: “fromAddress”,

“type”: “address”

},

{

“indexed”: false,

“internalType”: “uint256”,

“name”: “number”,

“type”: “uint256”

}

],

“name”: “NewPositiveFound”,

“type”: “event”

},

{

“inputs”: [],

“name”: “testForCovidPositivePublic”,

“outputs”: [],

“stateMutability”: “nonpayable”,

“type”: “function”

},

{